

        <!-- Content Header (Page header) -->
        <#--<section class="content-header">
            <h1>
                SKU-库存管理
                <small>出入库管理</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="${base}/goods"><i class="fa fa-dashboard"></i> 首页</a></li>
                <li class="active">库存管理</li>
            </ol>
        </section>-->

        <!-- Main content -->
        <section class="content container-fluid">

            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                    <#--<div class="box-header">
                        <h3 class="box-title">标签管理</h3>
                        <div class="box-tools">
                            <div class="input-group input-group-sm" style="width: 150px;">
                                <input type="text" name="table_search" class="form-control pull-right"
                                       placeholder="Search">

                                <div class="input-group-btn">
                                    <button type="submit" class="btn btn-default"><i class="fa fa-search"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>-->
                        <!-- /.box-header -->
                        <div class="box-body table-responsive no-padding">
                            <div class="box-body pull-left">
                                <form class="form-inline">
                                    <div class="form-group">
                                        <label class="sr-only" for="tagName">标签名称</label>
                                        <input type="text" name="goodsId" class="form-control" id="tagName"
                                               placeholder="标签名称" value="${tagName!}">
                                    </div>
                                    <button type="button" class="btn btn-default" onclick="table.ajax.reload();">查询
                                    </button>
                                </form>
                            </div>
                            <!-- /.modal -->
                            <table id="tagTable" class="table table-bordered table-striped compact">
                                <thead>
                                <tr>
                                    <th>标签ID</th>
                                    <th>标签名称</th>
                                    <th class="no-padding">操作</th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                        <!-- /.box-body -->
                    </div>
                    <!-- /.box -->
                </div>
            </div>

        </section>
        <!-- /.content -->
        <script>
            var table;

            function initPage() {
                table = $('#tagTable').DataTable({
                    'dom': 'rtlp',
                    'serverSide': true,
                    'pageLength': 50,
                    scrollY: '100vh',
                    scrollCollapse: true,
                    'ajax': {
                        url: '${base}/home/tagData',
                        data: function (d) {
                            d.tagName = $('#tagName').val();
                        }
                    },
                    'columns': [
                        {"data": "id"},
                        {"data": "name"},
                        {
                            "data": "id",
                            "render": function (data) {
                                return "<button type=\"button\" class=\"btn btn-sm btn-danger\" " +
                                        "onclick=\"gm.delTag(" + data + ")\">删除</button>"
                            }
                        }
                    ]
                });
            }
        </script>